include(/mnt/Datos/Facultad/Latex/circuit_macros/pgf.m4)
include(/mnt/Datos/Facultad/Latex/circuit_macros/libcct.m4)
   
.PS 
cct_init
  
elen = 1
Origin: Here
	ground
	resistor(up_ elen); llabel(, R_{G},); 
	line right_ elen*0.3
	MOS:mosfet(up_ ,, LEDSQuB,S) with .G at Here;
	line from MOS.S down_ 0.1
	dot(at MOS.S)
	resistor(down_ elen*0.6); rlabel(, R_{S},); b_current(I_D,,O,E,0.5); ground
	line from MOS.D to (MOS.D.x, MOS.D.y + 0.1)
	resistor(right_ elen*0.7); llabel(, 50 \Omega, )
	MOS2:mosfet(left_ ,,LEDSuB) with .S at (Here.x+0.5, Here.y)
	resistor(right_ elen*0.7 from MOS2.S); llabel(, 100 \Omega,)
	{
		resistor(down_ elen*0.7); llabel(, R_D,)
		source(up_ elen*0.7 from (Here.x,Here.y-0.7), V); llabel(, V_{CC}, );
		ground(at (Here.x,Here.y-0.7))
	}
	line down_ 0.25 from MOS2.G 
	{
		line left_ to MOS.S
	}
	line up_ 0.2 from MOS2.B
	line left_ 0.3 
	line down_ 0.55
	line left_ to MOS.B
.PE





